@import '../../../theme/styles/default';
// TIPS: `content` 变更为 `desc`
.ad-ph {
  display: block;
  background: @component-background;
  padding: 16px 32px 0 32px;
  border-bottom: @border-width-base @border-style-base @border-color-split;
  .detail {
    display: flex;
  }
  .row {
    display: flex;
    width: 100%;
  }
  .ant-breadcrumb {
    margin-bottom: 16px;
  }
  .ant-tabs {
    margin: 0 0 -17px -8px;
    .ant-tabs-bar {
      border-bottom: @border-width-base @border-style-base @border-color-split;
    }
  }
  .logo {
    flex: 0 1 auto;
    margin-right: 16px;
    padding-top: 1px;
    > img {
      width: 28px;
      height: 28px;
      border-radius: @border-radius-base;
      display: block;
    }
  }
  .title {
    font-size: 20px;
    font-weight: 500;
    color: @heading-color;
    small {
      font-weight: normal;
      font-size: 14px;
      padding-left: @layout-gutter;
    }
  }
  .action {
    margin-left: 56px;
    min-width: 266px;
    nz-popconfirm:not(:last-child),
    .ant-btn-group:not(:last-child),
    .ant-btn:not(:last-child) {
      margin-right: 8px;
    }
    .ant-btn-group > .ant-btn {
      margin-right: 0;
    }
  }

  .title,
  .desc {
    flex: auto;
  }

  .action,
  .extra,
  .main {
    flex: 0 1 auto;
  }

  .main {
    width: 100%;
  }

  .title,
  .action {
    margin-bottom: 16px;
  }

  .logo,
  .desc,
  .extra {
    margin-bottom: 16px;
  }

  .action,
  .extra {
    text-align: right;
  }

  .extra {
    margin-left: 88px;
    min-width: 242px;
  }
  @media screen and (max-width: @screen-xl) {
    .extra {
      margin-left: 44px;
    }
  }
  @media screen and (max-width: @screen-lg) {
    .extra {
      margin-left: 20px;
    }
  }
  @media screen and (max-width: @screen-md) {
    .row {
      display: block;
    }
    .action,
    .extra {
      margin-left: 0;
      text-align: left;
    }
  }
  @media screen and (max-width: @screen-sm) {
    .detail {
      display: block;
    }
  }
  @media screen and (max-width: @screen-xs) {
    .action {
      .ant-btn-group,
      .ant-btn {
        display: block;
        margin-bottom: 8px;
      }
      .ant-btn-group > .ant-btn {
        display: inline-block;
        margin-bottom: 0;
      }
    }
  }
}
